import { useEffect, useState } from 'react';
import './home.css'
import Color from '../component/colors'
import axios from 'axios';
function Home() {
    const [type, setType] = useState([])
    useEffect(() => {
        axios.get("http://localhost:3000/type").then(res => {
            setType(res.data)
        })
    }, [])

    return (
        <div className="home">
            <div className="tops"></div>
            <div className="mains">
                <Color type={type} />
            </div>
        </div>
    )
}
export default Home;
